/**
 *Filename: goods_list.scss
 *Author: xhh
 *Description: 混钻商品列表，还没有编译的文件，用的是sass语法写
 *Date: 2018.03.28
 */
// 引入统一，清除各浏览器的默认和差异性
@import "reset.scss";
// 引入公用
@import "base.scss";

/* 婚戒主体部分 start */
.wedding-ring-list-container {
    min-height:100%; 
    // 头部标语
    .wedding-ring-list-slogan {
        position: relative;
        height: 498px;
        background: url(../img/goods/weddingRing/banner.jpg) no-repeat center;
        background-size: cover;
        h1 {
            position: absolute;
            top: 40%;
            left: 50%;
            width: 100%;
            font-size: 4.4rem;
            font-weight: 500;
            letter-spacing: 20px;
            text-align: center;
            text-transform: uppercase;
            transform: translate(-50%,-50%);
            color: #fff;
        }
        p{
            position: absolute;
            top: 55%;
            left: 50%;
            width: 100%;
            font-size: 1rem;
            font-weight: 600;
            text-align: center;
            letter-spacing: 5px;
            color: #fff;
            text-transform: uppercase;
            transform: translate(-50%,-50%);
        }
    }
    .wedding-ring-choose-wrapper {
        width: 1200px;
        overflow: visible
    }
    // 筛选头部标题
    .wedding-ring-choose-header {
        h2 {
            font-size: 2.2rem;
            font-weight: 500;
            padding: 2rem 0 1rem;
            color: #7d7d7d;
        }
    }
    // 筛选婚戒部分标题说明
    .wedding-ring-choose-param {
        h3 {
            position: relative;
            font-size: 1.2rem;
            line-height: 2.4;
            &::before {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 4rem;
                height: 2px;
                background-color: #7d7d7d;
            }
        }
    }
    // 钻石形状列表
    .wedding-ring-shape-list {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    .wedding-ring-shape-item {
        flex-grow: 1;
        a {
            color: #666;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        // 形状图片
        .goods-img {
            max-width: 100%;
        }
        // 形状名称
        .goods-name {
            margin-top: .2rem;
            font-size: 1rem;
            font-weight: normal;
        }
        // 形状英文
        .goods-en {
            padding-top: .4rem;
            font-size: .875rem;
            text-transform: uppercase;
        }
        &.on {
            .goods-name {
                color: #000;
                font-weight: bold;
            }
            .goods-en {
                color: #000;
                font-weight: bold;
            }
        }
        &:hover {
            .goods-name {
                color: #000;
                font-weight: bold;
            }
            .goods-en {
                color: #000;
                font-weight: bold;
            } 
        }
    }
    // 其他钻石参数
    .wedding-ring-other-param {
        display: flex;
        margin-top: 1.4rem;
        .param {
            width: 33%;
            padding-right: 2%;
        }
        // 进度条盒子
        .slider-box {
            margin-top: 1.6rem;
            .input-value {
                display: flex;
                justify-content: space-between;
                margin-top: 1.6rem;
                width: 380px;
                div {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 4.8rem;
                    border: 1px solid #d6d6d6;
                }
                input {
                    max-width: 65%;
                    line-height: 1.6;
                    font-size: 1.1rem;
                    text-align: center;
                    border: none;
                    outline: none;
                }
            }
        }
        .slider {
            position: relative;
            width: 380px;
            height: 4px;
            background-color: #d6d6d6;
            .bar1 {
                width: 18px;
                height: 18px;
                background-color: #7d7d7d;
                position: absolute;
                top: -7px;
                left: 0;
                cursor: pointer;
            }
            .bar2 {
                width: 18px;
                height: 18px;
                background-color: #7d7d7d;
                position: absolute;
                top: -7px;
                right: 0;
                cursor: pointer;
            }
            .mask-slider {
                position: absolute;
                left: 0;
                right: 0;
                height: 100%;
                background-color: #7d7d7d;
            }
        }
        // 设计风格
        .wedding-ring-style {
            width: 32%;
            padding-right: 0;
            ul {
                display: flex;
                margin-top: 1.4rem;
                width: 90%;
                li {
                    border: 1px solid #aaa;
                    border-right: 0 none;
                    text-align: center;
                    flex-grow: 1;
                    line-height: 3;
                    cursor: pointer;
                    &:last-child {
                        border-right: 1px solid #aaa;
                    }
                    &:hover {
                        background-color: #bbb;
                        color: #fff;
                    }
                    &.on {
                        background-color: #bbb;
                        color: #fff;
                    }
                }
            }
        }
        .wedding-ring-color {
            width: 32%;
            padding-right: 0;
            ul {
                display: flex;
                margin-top: 1.4rem;
                width: 90%;
                li {
                    border: 1px solid #aaa;
                    border-right: 0 none;
                    text-align: center;
                    flex-grow: 1;
                    line-height: 3;
                    cursor: pointer;
                    &:last-child {
                        border-right: 1px solid #aaa;
                    }
                    &:hover {
                        background-color: #bbb;
                        color: #fff;
                    }
                    &.on {
                        background-color: #bbb;
                        color: #fff;
                    }
                }
            }
        }
    }
    // 包裹婚戒的盒子
    .wedding-ring-list-box {
        margin-top: 2rem;
    }
    // 婚戒列表
    .wedding-ring-list {
        display: flex;
        flex-flow: wrap;
    }
    // 每一个婚戒
    .wedding-ring-item {
        width: 25%;
        margin-top: 1rem;
        box-sizing: border-box;
        img {
            max-width: 100%;
        }
        a {
            position: relative;
            top: 0;
            width: 90%;
            padding-bottom:2rem;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            &:hover {
                top: -5px;
                transition: all .2s linear;
                box-shadow: 0 0 15px #ccc;
                cursor: pointer;
            }
        }
        // 婚戒信息
        .wedding-ring-info {
            width: 70%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
        }
        // 婚戒名称
        .wedding-ring-name {
            text-transform: capitalize;
            color: #2b2b2b;
        }
        // 婚戒价格
        .wedding-ring-price {
            margin-top: .4rem;
            del {
                font-size: .875rem;
                color: #989898;
            }
            em {
                font-style: normal;
                color: #ddb168;
            }
        }
    }
     // 底部的页码
    .wedding-ring-pages {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 3rem 0;
        span {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 2.7rem;
            height: 2rem;
            border: 1px solid #a5a5a5;
            margin: 0 .5rem;
            line-height: 2.4rem;
            cursor: pointer;
            i {
                background-repeat: no-repeat;
                background-position: center;
                background-size: cover;
                display: inline-block;
                width: 20px;
                height: 20px;
            }
        }
        // 上一页按钮背景图
        .pre-page {
            i {
                background-image: url(../img/article/list/icon_left.png);
            }
        }
        // 下一页按钮背景图
        .next-page {
            i{
                background-image: url(../img/article/list/icon_right.png);
            }
        }
        // 数字页码
        a {
            display: inline-block;
            margin: 0 .8rem;
            line-height: 2.4rem;
            font-size: .875rem;
            color: #5d5d5d;
            &.active {
                text-decoration: underline;
                color: #a5a5a5;
            }
            &:hover {
                text-decoration: underline;
                color: #a5a5a5;
            }
        }
    }
}
/* 婚戒主体部分 end */